Skip to content

BUG: Index.reindex raising with level and no MultiIndex #46327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 11, 2022

Conversation

phofl
Copy link
Member

@phofl phofl commented Mar 11, 2022

We have basically three options:

  • raising when level is specified without a MultiIndex (would have to deprecate probably, because if self equals target this works currently)
  • just ignoring level
  • checking if index.name == level when no MultiIndex is given

@jreback jreback added this to the 1.5 milestone Mar 11, 2022
@jreback jreback merged commit be81ae0 into pandas-dev:main Mar 11, 2022
@jreback
Copy link
Contributor

jreback commented Mar 11, 2022

this is reasonable

@phofl phofl deleted the 35132 branch June 6, 2022 20:51
yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Passing level= to DataFrame.reindex fails when the index is flat
2 participants